import request from '@/libs/request';

/**
 * 获取列表数据
 * @param params
 * @return {*}
 */
export function getUniversitAlbumListApi(params) {
    return request({
        url: 'crud/universit_album',
        method: 'get',
        params,
    });
}

/**
 * 获取添加表单数据
 * @return {*}
 */
export function getUniversitAlbumCreateApi() {
    return request({
        url: 'crud/universit_album/create',
        method: 'get',
    });
}

/**
 * 添加数据
 * @param data
 * @return {*}
 */
export function universitAlbumSaveApi(data) {
    return request({
        url: 'crud/universit_album',
        method: 'post',
        data
    });
}

/**
 * 获取编辑表单数据
 * @param id
 * @return {*}
 */
export function getUniversitAlbumEditApi(id) {
    return request({
        url: `crud/universit_album/${id}/edit`,
        method: 'get'
    });
}

/**
 * 修改数据
 * @param id
 * @return {*}
 */
export function universitAlbumUpdateApi(id, data) {
    return request({
        url: `crud/universit_album/${id}`,
        method: 'put',
        data
    });
}

/**
 * 修改状态
 * @param id
 * @return {*}
 */
export function universitAlbumStatusApi(id, data) {
    return request({
        url: `crud/universit_album/status/${id}`,
        method: 'put',
        data
    });
}

/**
 * 删除数据
 * @param id
 * @return {*}
 */
export function universitAlbumDeleteApi(id) {
    return request({
        url: `crud/universit_album/${id}`,
        method: 'delete'
    });
}

/**
 * 获取数据
 * @param id
 * @return {*}
 */
export function getUniversitAlbumReadApi(id) {
    return request({
        url: `crud/universit_album/${id}`,
        method: 'get'
    });
}


